import request from '@/utils/request'

// 创建项目反馈
export function create(data) {
  return request({
    url: '/fi/coreTask/create',
    method: 'post',
    data: data
  })
}

// 更新项目反馈
export function update(data) {
  return request({
    url: '/fi/coreTask/update',
    method: 'put',
    data: data
  })
}

// 删除项目反馈
export function delCoreTask(id) {
  return request({
    url: '/fi/coreTask/delete?id=' + id,
    method: 'delete'
  })
}

// 获得项目反馈
export function get(id) {
  return request({
    url: '/fi/coreTask/get?id=' + id,
    method: 'get'
  })
}

// 获得项目反馈分页
export function getPage(query) {
  return request({
    url: '/fi/coreTask/page',
    method: 'get',
    params: query
  })
}

// 导出项目反馈 Excel
export function exportExcel(query) {
  return request({
    url: '/fi/coreTask/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 获取项目反馈列表信息
export function getList(query) {
  return request({
    url: '/fi/coreTask/list',
    method: 'get',
    params: query
  })
}
